#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<math.h>
using namespace std;

class Solution{
    public:
    double ans1(double x, int n){
        return pow(x, n);
    }
};

void test1(){
    Solution s;
    double x = 2.0;
    int n = 10;

    double ret = s.ans1(x, n);
    cout << ret << endl;
}

void test2(){
    Solution s;
    double x = 2.1;
    int n = 3;

    double ret = s.ans1(x, n);
    cout << ret << endl;
}

void test3(){
    Solution s;
    double x = 2.0;
    int n = -2;

    double ret = s.ans1(x, n);
    cout << ret << endl;
}

int main(void){
    test1();
    test2();
    test3();

    return 0;
}